<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>hotel</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
TD,TH {
	FONT-SIZE:12px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>

<body topmargin="0" leftmargin="0" bottommargin="0">
<table width="750" align="center" border="0"  cellpadding="0" cellspacing="0">
  <tr>
    <td height="40" bgcolor="#6699ff"><div align="center" class="style1">房间信息：</div></td>
  </tr>
  <tr>
    <td height="253" bgcolor="#666666"><table width="750" border="0" cellpadding="0" cellspacing="1">
  <form action="../room_add.php" method="post" name="form1" id="form1" onsubmit="MM_validateForm('id','','R','area','','R','cost','','R');return document.MM_returnValue">
      <tr>
         <td width="129" height="25" bgcolor="#FFFFFF"><div align="center">房间编号：</div></td>
        <td width="618" bgcolor="#FFFFFF"><div align="left"><label>
          <input name="id" type="text" id="id" />
        </label></div></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF"><div align="center">房间类型：</div></td>
        <td width="618" bgcolor="#FFFFFF"><div align="left"><label> <br />
  <select name="room" id="room">
              <option value="普通单人房">普通单人房</option>
              <option value="普通双人房">普通双人房</option>
              <option value="标准双人房">标准单人房</option>
              <option value="标准双人房">标准双人房</option>
              <option value="豪华房">豪华房</option>
              <option value="终点房">终点房</option>
            </select>
          <br />
        </label></div>
          <label></label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF"><div align="center">房间状态：</div></td>
        <td width="618" bgcolor="#FFFFFF"><div align="left"><label>
          <input name="status" type="text" id="status" />
        </label></div></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF"><div align="center">房间面积：</div></td>
         <td width="618" bgcolor="#FFFFFF"><div align="left"><label>
          <input name="area" type="text" id="area" />
        </label></div></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF"><div align="center">价格: </div></td>
        <td width="618" bgcolor="#FFFFFF"><div align="left"><label>
          <input name="cost" type="text" id="cost" />
        </label></div></td>
      </tr>
      <tr>
       <td height="80" bgcolor="#FFFFFF"><div align="center">简介： </div></td>
         <td height="25" bgcolor="#FFFFFF"><div align="left"><label>
          <input name="description" type="text" id="description" />
        </label></div></td>
      </tr>
      <tr>
         <td height="25" colspan="2" bgcolor="#FFFFFF"><div align="center"><label>
        <input type="submit" name="Submit" value="提交" />
        <input type="reset" name="Submit2" value="重置" />
        </label></div></td>
      </tr>
  </form>
</table>
</td>
</tr>
</table>
</body>
</html>
